<?php
namespace App\Common;

class ErrorCode
{
    const PARAMS_NOT_VALID_CODE 		= 10000;
    const PARAMS_NOT_VALID_MESSAGE 		= '参数错误';

    const TELEPHONE_NOT_VALID_CODE      = 10001;
    const TELEPHONE_NOT_VALID_MESSAGE   = '手机号码格式错误';

    const USER_NOT_VALID_CODE           = 10002;
    const USER_NOT_VALID_MESSAGE        = '用户不存在';

    const UPDATE_ERROR_CODE             = 10003;
    const UPDATE_ERROR_MESSAGE          = '修改失败';

    const DELETE_ERROR_CODE             = 10003;
    const DELETE_ERROR_MESSAGE          = '删除失败';

    const TELEPHONE_BIND_CODE      = 10004;
    const TELEPHONE_BIND_MESSAGE   = '手机号已被绑定';
}